import request from '@/utils/request'

// 查询积分设置详细
export function getIntegralSetting() {
  return request({
    url: '/market/integralSetting/',
    method: 'get'
  })
}

// 修改积分设置
export function updateIntegralSetting(data) {
  return request({
    url: '/market/integralSetting',
    method: 'put',
    data: data
  })
}

// 状态修改
export function changeIntegralSettingStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/market/integralSetting/changeStatus',
    method: 'put',
    data: data
  })
}
